projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6227a5a
)
babl: move BABL_ALPHA_FLOOR to public babl header
author
Øyvind Kolås
<pippin@gimp.org>
Sun, 26 Aug 2018 21:19:35 +0000
(23:19 +0200)
committer
Øyvind Kolås
<pippin@gimp.org>
Sun, 26 Aug 2018 21:19:35 +0000
(23:19 +0200)
babl/babl.h
patch
|
blob
|
history
babl/base/util.h
patch
|
blob
|
history
diff --git
a/babl/babl.h
b/babl/babl.h
index 2e0735d2f6102610b912aeefcd184d37706b3fb7..5a7ca7e946e9c663c45285339bbfe24b2305a3dc 100644
(file)
--- a/
babl/babl.h
+++ b/
babl/babl.h
@@
-584,6
+584,12
@@
babl_space_from_rgbxyz_matrix (const char *name,
*/
const char * babl_format_get_encoding (const Babl *babl);
+/* values below this are stored premultiplied with this value,
+ * it can also be used as a generic alpha zero epsilon in GEGL
+ *
+ */
+#define BABL_ALPHA_FLOOR (1/65536.0)
+
#ifdef __cplusplus
}
#endif
diff --git
a/babl/base/util.h
b/babl/base/util.h
index 4d9f536aee19241d8dd6e6fd5ceaa636b319d13b..b16840e2b466fd40e7b5e506501a680b1a1e635b 100644
(file)
--- a/
babl/base/util.h
+++ b/
babl/base/util.h
@@
-30,8
+30,6
@@
*/
#define BABL_ALPHA_THRESHOLD 0.000000152590219
- /* values below this are stored premultiplied with this value */
-#define BABL_ALPHA_FLOOR (1/65536.0)
#define BABL_PLANAR_SANITY \
{ \